let count = {
  computedTime: function (sjc) {
    let leftTime = sjc * 1000 - Date.parse(new Date()); //计算剩余的毫秒数
    if (leftTime >= 0) {
      let days = parseInt(leftTime / 1000 / 60 / 60 / 24, 10); //计算剩余的天数
      let hours = parseInt((leftTime / 1000 / 60 / 60) % 24, 10); //计算剩余的小时
      let minutes = parseInt((leftTime / 1000 / 60) % 60, 10); //计算剩余的分钟
      let seconds = parseInt((leftTime / 1000) % 60, 10); //计算剩余的秒数
      let CountDownTime = {};
      CountDownTime.days = count.checkTime(days);
      CountDownTime.hours = count.checkTime(hours);
      CountDownTime.minutes = count.checkTime(minutes);
      CountDownTime.seconds = count.checkTime(seconds);
      return CountDownTime
    } else {
      return false
    }
  },
  checkTime: function (i) {
    if (i > 0 && i < 10) {
      i = "0" + i;
    }
    return i;
  },
}

export default count